CC := g++
CFLAGS := -Wall
#LFLAGS := -I/directorio

all : mochila

mochila : mochila.o AG.o functionFitness.o

AG.o : AG.cpp 
	$(CC) $(CFLAGS) -c -o $@ $^

functionFitness.o : functionFitness.cpp
	$(CC) $(CFLAGS) -c -o $@ $^

mochila.o : mochila.cpp
	$(CC) $(CFLAGS) -c -o $@ $^

.PHONY : clean

clean :
	-rm -f *.o *~ mochila
